﻿
using BCCommon;
using BCCommon.TMS.Transport;
using BCDto.Sim.Admin.Admin;
using BCDto.TMS.Driver.VehicleBusiness;
using BCDto.TMS.VehicleBusinessMapping;
using System;
using System.Collections.Generic;

namespace BCService.TMS.VehicleBusinessMappingOverwrite
{
    /// <summary>
    /// 车辆与业务配置重写
    /// </summary>
    public interface IVehicleBusinessMappingOverwriteService
	{
		#region  成员方法
		/// <summary>
		/// 是否存在此记录
		/// </summary>
		/// <param name="vehicleBusinessMappingOverwriteId">车辆与业务配置重写Id</param>
		bool Exists(int vehicleBusinessMappingOverwriteId);
		/// <summary>
		/// 添加车辆与业务配置重写
		/// </summary>
		/// <param name="adminDto">员工信息</param>
		/// <param name="requestDto">车辆与业务配置重写信息</param>
		VehicleBusinessMappingDto Add(AdminDto adminDto, VehicleBusinessMappingOverwriteDto requestDto);
		/// <summary>
		/// 更新车辆与业务配置重写
		/// </summary>
		/// <param name="adminDto">员工信息</param>
		/// <param name="putDto">车辆与业务配置重写信息</param>
		VehicleBusinessMappingDto Update(AdminDto adminDto, VehicleBusinessMappingOverwriteDto putDto);
		/// <summary>
		/// 删除车辆与业务配置重写
		/// </summary>
		/// <param name="adminDto">员工信息</param>
		/// <param name="vehicleBusinessMappingOverwriteId">车辆与业务配置重写Id</param>
		bool Delete(AdminDto adminDto, int vehicleBusinessMappingOverwriteId);
		/// <summary>
		/// 获取车辆与业务配置重写
		/// </summary>
		/// <param name="vehicleBusinessMappingOverwriteId">车辆与业务配置重写Id</param>
		VehicleBusinessMappingDto Get(int vehicleBusinessMappingOverwriteId);
		/// <summary>
		/// 获取车辆与业务配置重写
		/// </summary>
		/// <param name="vehicleBusinessMappingId">车辆与业务配置Id</param>
		/// <param name="agentRecordId">代理商Id</param>
		VehicleBusinessMappingDto Get(int vehicleBusinessMappingId,long agentRecordId);
		/// <summary>
		/// 获取车辆与业务配置重写
		/// </summary>
		/// <param name="transportBusinessType">运输业务类型</param>
		/// <param name="vehicleTypeId">车型Id</param>
		/// <param name="vehicleCategoryReferenceId">车辆分来Id</param>
		/// <param name="agentRecordId">代理商Id</param>
		VehicleBusinessMappingDto Get(TransportBusinessType transportBusinessType,int vehicleTypeId, int? vehicleCategoryReferenceId, long agentRecordId);
		/// <summary>
		/// 获取车辆与业务配置重写列表
		/// </summary>
		/// <param name="adminDto">员工信息</param>
		IEnumerable<VehicleBusinessMappingDto> GetList(AdminDto adminDto);
		/// <summary>
		/// 获取车辆与业务配置重写列表
		/// </summary>
		/// <param name="countyCode">区县编码</param>
		/// <returns></returns>
		IEnumerable<VehicleBusinessMappingDto> GetList(string countyCode);
		/// <summary>
		/// 获取车辆与业务配置重写分页列表
		/// </summary>
		/// <param name="agentRecordId">代理商Id</param>
		/// <param name="provinceCode">省份编码</param>
		/// <param name="cityCode">城市编码</param>
		/// <param name="countyCode">区县编码</param>
		/// <param name="vehicleTransportBusinessConfigId">车辆运输业务配置Id</param>
		/// <param name="vehicleTypeId">车型Id</param>
		/// <param name="enabled">启用</param>
		/// <param name="start">开始时间</param>
		/// <param name="end">结束时间</param>
		/// <param name="sortName">排序字段</param>
		/// <param name="ascending">升序</param>
		/// <param name="pageIndex">当前页码</param>
		/// <param name="pageSize">车辆与业务配置重写每页数据条数</param>
		PageableList<VehicleBusinessMappingDto> Query(long? agentRecordId, string provinceCode, string cityCode, string countyCode, int? vehicleTransportBusinessConfigId, int? vehicleTypeId, bool? enabled, DateTime? start, DateTime? end, string sortName, bool? ascending, int pageIndex, int pageSize);
		/// <summary>
		/// 启用车辆与业务配置重写
		/// </summary>
		/// <param name="adminDto">员工信息</param>
		/// <param name="vehicleBusinessMappingOverwriteId">车辆与业务配置重写Id</param>
		bool Enabled(AdminDto adminDto,int vehicleBusinessMappingOverwriteId);
		/// <summary>
		/// 禁用车辆与业务配置重写
		/// </summary>
		/// <param name="adminDto">员工信息</param>
		/// <param name="vehicleBusinessMappingOverwriteId">车辆与业务配置重写Id</param>
		bool Disabled(AdminDto adminDto, int vehicleBusinessMappingOverwriteId);


		/// <summary>
		/// 获取运输车辆列表
		/// </summary>
		/// <param name="countyCode">区县编码</param>
		/// <returns></returns>
		IEnumerable<VehicleBusinessMappingForAppDto> GetDistinctList(string countyCode);
		#endregion  成员方法
	}
}